package com.cx.mall.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cx.mall.common.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cx.mall.common.model.order.OrderQuery;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author lyt
 * @since 2025-07-14
 */
public interface IOrderInfoService extends IService<OrderInfo> {
    List<OrderInfo> listByUserId(Long id);

    List<OrderInfo> listByOrderState(Long id ,Integer orderState);

    /**
     * 按条件查询订单
     */
    Page page(OrderQuery query);


    public boolean updateStatus(Long orderId, Integer status);
}
